<?php

namespace example\annotation;

use restphp\aop\AopParam;
use restphp\aop\Aspect;

/**
 * @Aspect (name="TestAop")
 */
class TestAopImpl implements Aspect {
    function before($aopParam)
    {
        // TODO: Implement perform() method.
        var_dump($aopParam->getCallClass());
    }

    function after($aopParam)
    {
        echo "after! method execute result: \n";
        var_dump($aopParam->getResult());
    }
}